package com.taobao.ui.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

public class ReceiveWidget extends CommonWidget {

	@Override
	public String getID() {
		return "com.taobao.ui.widget.ReceiveWidget";
	}

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public ReceiveWidget(Composite parent, int style) {
		super(parent, style);
		GridLayout gridLayout = new GridLayout(1, false);
		gridLayout.marginWidth = 0;
		gridLayout.marginHeight = 0;
		gridLayout.horizontalSpacing = 5;
		setLayout(gridLayout);

		Composite composite = new Composite(this, SWT.NONE);
		GridLayout gridLayout_1 = new GridLayout(3, false);
		gridLayout_1.marginWidth = 0;
		gridLayout_1.marginHeight = 0;
		composite.setLayout(gridLayout_1);
		GridData gridData_2 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
		gridData_2.heightHint = 123;
		composite.setLayoutData(gridData_2);

		ReceiveSerachWidget receiveSerachWidget = new ReceiveSerachWidget(composite, SWT.NONE);
		GridData gridData = new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1);
		gridData.widthHint = 285;
		receiveSerachWidget.setLayoutData(gridData);

		ReceiveFilterWidget receiveFilterWidget = new ReceiveFilterWidget(composite, SWT.NONE);
		receiveFilterWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

		ReceiveChartWidget receiveChartWidget = new ReceiveChartWidget(composite, SWT.NONE);
		GridData gridData_1 = new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1);
		gridData_1.widthHint = 330;
		receiveChartWidget.setLayoutData(gridData_1);

		ReceiveTaskWidget receiveTaskWidget = new ReceiveTaskWidget(this, SWT.NONE);
		receiveTaskWidget.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	}

}
